<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<!-- 网站右下角弹出框 -->
    <div id="qqalert" style="background:url(/images/doudong2.gif) no-repeat; width:214px; height:124px; position:fixed; _position:absolute;bottom:10px; right:3px;z-index:999;">
    	<span onclick="cqa()" style=" display:block; float:right; margin:2px 2px 0 15px; color:#1670EB; font-size:12px; cursor:pointer">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--关闭--></span>
        <span onclick="cqa()" style=" display:block; float:right; margin:100px 20px 0 15px; color:#1670EB; font-size:12px; cursor:pointer">拒绝</span>
        <a href="/zixun" target="_blank" style=" display:block; float:right; margin:100px 0 0 10px; color:#1670EB; font-size:12px; cursor:pointer">接受</a>
    </div>

</body>
</html>

<script language="javascript">
$(function(){
	$("#qqalert").appendTo("body");
	//setInterval("cqa()",12000);
	shakeTimer = setInterval("sqa()",8000);
});
function cqa(){
	$("#qqalert").fadeOut("slow");
}
function sqa(){
	if($("#qqalert").css("display")!="block"){
		//$("#qqalert").fadeIn("slow");
		return false;
	}
	speed=50;
	for(i=0;i<3;i++){
		$("#qqalert").animate({"right":"0"},speed).animate({"bottom":"8px"},speed).animate({"right":"3px"},speed).animate({"bottom":"10px"},speed);	
	}
	
	//如果使用循环，时间久了会重叠循环，导致死循环，这个问题在想办法解决
}

$("#qqalert").mouseover(function(){
	clearTimeout(shakeTimer);
})
$("#qqalert").mouseout(function(){
	shakeTimer = setInterval("sqa()",6000);
})

</script> 